package com.lupan.passwordbox.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/8/16 15:02
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy=Beyond5ConstraintValidator.class)
public @interface Beyond5 {

    String message() default "beyond5";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
